package org.easy.system.manage.dto;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: SaveDeptParam
 * @Description: 保存部门参数类
 * @author: daiw
 * @date: 2019年10月21日 上午11:19:32
 */
@ApiModel("保存部门参数")
public class SaveDeptParam {

	/**
	 * 父部门id
	 */
	@NotNull(message = "父级部门编号不能为空")
	@ApiModelProperty(value = "父级id", position = 1, required = true)
	private Long parentId;

	/**
	 * 部门名称
	 */
	@NotNull(message = "部门名称不能为空")
	@ApiModelProperty(value = "部门名称", position = 2, required = true)
	private String deptName;

	/**
	 * 负责人
	 */
	@ApiModelProperty(value = "负责人", position = 3)
	private String leader;

	/**
	 * 联系电话
	 */
	@ApiModelProperty(value = "联系电话", position = 4)
	private String phone;

	/**
	 * 邮箱
	 */
	@ApiModelProperty(value = "邮箱", position = 5)
	private String email;

	/**
	 * @return the parentId
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	/**
	 * @return the deptName
	 */
	public String getDeptName() {
		return deptName;
	}

	/**
	 * @param deptName
	 *            the deptName to set
	 */
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	/**
	 * @return the leader
	 */
	public String getLeader() {
		return leader;
	}

	/**
	 * @param leader
	 *            the leader to set
	 */
	public void setLeader(String leader) {
		this.leader = leader;
	}

	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * @param phone
	 *            the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

}
